<%@ page import="static com.test.ws.s1.utils.Res.fileUrl" %><%--
  Created by IntelliJ IDEA.
  User: M1523
  Date: 2025/3/23
  Time: 14:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>用户信息修改</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .form-container {
            background-color: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            width: 350px;
            text-align: center;
        }

        .form-container h2 {
            margin-bottom: 30px;
            color: #333;
        }

        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #555;
            font-weight: 600;
        }

        .form-group input {
            width: 100%;
            padding: 10px;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 5px;
            transition: border-color 0.3s;
        }

        .form-group input:focus {
            border-color: #007bff;
            outline: none;
        }

        .form-group button {
            width: 100%;
            padding: 12px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .form-group button:hover {
            background-color: #0056b3;
        }

        .form-container {
            background-color: transparent;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            width: 350px;
            text-align: center;
        }

        body{
            background-image: url("${pageContext.request.contextPath}/images/111.jpg");
            background-size: cover;
            background-repeat: no-repeat;
        }
    </style>
</head>
<body>
<div class="form-container">
    <h2>修改用户信息</h2>
    <form action="${pageContext.request.contextPath}/userqtGaiGeRenZx" method="post"  enctype="multipart/form-data">
        <!-- 新增隐藏域 -->
        <input type="hidden" name="user_id" value="${qttx.user_id}">
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" id="username" name="user_name" value="${qttx.user_name}" required>
        </div>
        <div class="form-group">
            <label for="email">手机号</label>
            <input type="text" id="email" name="user_phone" value="${qttx.user_phone}" required>
        </div>
        <div class="form-group">
            <label for="password">新密码</label>
            <input type="password" id="password" name="user_pass" value="${qttx.user_pass}">
        </div>
        <div class="form-group">
            <label>头像:</label>
            <img src="<%=fileUrl%>${qttx.user_tx}" height="50px" width="50px" class="avatar">
            <p>修改头像:<input type="file" name="image"></p>
        </div>

        <div class="form-group">
            <button type="submit">保存修改</button>
        </div>
    </form>
</div>
</body>
</html>
